document.addEventListener('DOMContentLoaded', function() {
    var el = document.getElementById('hywl-ai-summary-content');
    if (!el) return;
    var typed = el.getAttribute('data-typed');
    var speed = parseInt(el.getAttribute('data-speed') || '50', 10);
    if (typed !== '1') return;
    var text = el.textContent;
    el.textContent = '';
    var i = 0;
    function type() {
        if (i < text.length) {
            el.textContent += text.charAt(i);
            i++;
            setTimeout(type, speed);
        } else {
            el.textContent = text;
        }
    }
    type();
}); 